package com.dtx.msg;

public enum ResultMsgEnum {

    _200(200, "请求成功"),
    _401(401, "请先登录"),
    _402(402, "token未生效"),
    _403(403, "token已过期"),
    _404(404, "token未找到"),
    _405(405, "token被修改"),
    _406(406, "非法token"),
    _407(407, "非法请求"),
    _408(408, "重复提交"),
    _500(500, "系统繁忙，请稍后再试"),
    _501(501, "请求频繁，请稍后再试");

    private Integer code;
    private String message;

    private ResultMsgEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
